
:root {
    --primary-color: #009688;
    --secondary-color: #333;
    --background-color: rgba(255, 255, 255, 0.95);
    --input-bg-color: #f9f9f9;
    --input-border-color: #ccc;
    --input-focus-border-color: var(--primary-color);
    --input-focus-box-shadow: 0 0 8px rgba(0, 150, 136, 0.3);
    --btn-bg-color: var(--primary-color);
    --btn-hover-bg-color: #00796b;
    --text-color: var(--secondary-color);
    --link-color: var(--primary-color);
    --link-hover-color: #00796b;
    --border-radius: 8px;
    --box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    --form-width: 380px; /* 减小表单宽度 */
}

body {
    background-image: url('../images/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.login-container {
    background-color: var(--background-color);
    padding: 45px 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: var(--form-width);
    max-width: 90%;
    text-align: center;
    position: relative;
}

.login-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.form-icon {
    color: var(--primary-color);
    font-size: 20px;
    width: 35px;
    text-align: center;
}

.form-input {
    flex: 1;
    position: relative;
}

.form-input input {
    width: 100%;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 48px;
    font-size: 17px;
    padding: 0 15px;
    border: 1px solid var(--input-border-color);
    background-color: var(--input-bg-color);
}

.form-input input:focus {
    border-color: var(--input-focus-border-color) !important;
    box-shadow: var(--input-focus-box-shadow);
    outline: none;
}

.toggle-password {
    color: #888;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 17px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.btn-login {
    background-color: var(--btn-bg-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    height: 50px;
    font-size: 19px;
    letter-spacing: 1px;
    width: 66%;
    margin: 10px 0 25px 0;
    border: none;
    color: white;
    cursor: pointer;
}

.btn-login:hover {
    background-color: var(--btn-hover-bg-color);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(1px);
}

.remember-forget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* 移除自定义勾选框样式 */
.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.forgot-password {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.register-link {
    margin-top: 20px;
    font-size: 16px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.register-link a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .login-container {
        padding: 35px 25px;
        width: 90%;
    }

    .login-title {
        font-size: 30px;
    }

    .form-input input {
        height: 45px;
        font-size: 16px;
    }

    .btn-login {
        height: 48px;
        font-size: 18px;
    }

    .remember-forget {
        font-size: 15px;
    }

    .register-link {
        font-size: 15px;
    }
}
